package com.qiyadeng.company.biz;

import java.util.List;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.DomDriver;

public class RespGrantTicket {
	
	private String loginId;
	private String termNo;
	private String termSeq;
	private List<TicketGrant> tickets;
	private String code;
	private String message;
	
	public static RespGrantTicket getRespGrantTicketFromXml(String xml){
		XStream xstream = new XStream(new DomDriver());
		xstream.alias("informations", RespGrantTicket.class);
		xstream.alias("ticket", TicketGrant.class);
		xstream.aliasField("tickets", RespGrantTicket.class, "tickets");
		RespGrantTicket resSelectUser = (RespGrantTicket)xstream.fromXML(xml);
		return resSelectUser;
	}
	
	public String getLoginId() {
		return loginId;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getTermNo() {
		return termNo;
	}
	public void setTermNo(String termNo) {
		this.termNo = termNo;
	}
	public String getTermSeq() {
		return termSeq;
	}
	public void setTermSeq(String termSeq) {
		this.termSeq = termSeq;
	}
	public List<TicketGrant> getTickets() {
		return tickets;
	}
	public void setTickets(List<TicketGrant> tickets) {
		this.tickets = tickets;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}


